package com.standardoperationapp.global;

import com.standardoperationapp.bean.StateBean;

import java.util.ArrayList;
import java.util.List;

public class GlobalVaries {
    public static boolean debugFlag = false; //


    // 作业计划-开启联防防控报警要用的参数
    public static int plantId = 0;
    // 作业计划-开启联防防控报警要用的参数
    public static int workPointId = 0;
    // 作业计划-开启联防防控报警要用的参数
    public static int executableId = 0;

    public static final int DOOR_MANAGE = 100;
    public static final int DOOR_EMERGENCY = 101;
    public static final int DOOR_APPLY_KEY = 102;
    public static int varies = 0;
    public static int uiType = 0;

    // 0入库 1出库
    public static int inOutType = -1;
    public static final int inBound = 0;
    public static final int outBound = 1;
    public static ArrayList<String> chukuTypeList = new ArrayList<String>();
    public static ArrayList<String> rukuTypeList = new ArrayList<String>();
    public static ArrayList<String> pankuTypeList = new ArrayList<String>();


    public static final int LINGYONG = 1;
    public static final int XIAOHAO = 2;
    public static final int DIAOBO = 3;
    public static final int baoFei = 7;
    public static final int KUCUNBUCHONG = 4;
    public static final int PANDIAN = 5;
    public static final int XIANCHANGWUZI = 6;
    public static final int PANDIAN_XIANCHANG = 1;
    public static final int PANDIAN_JIHUA = 2;
    public static int pandiantype = 0;

    public static boolean createFlag = false;
    public static String curBlueMac = "";
    public static Double  curBattery = 0.0;
public static boolean blueInitFlag=false;
    public static boolean UpdateWarnFlag =false;
    public static List<StateBean> idlist = new ArrayList<StateBean>();
    public static List<StateBean>worklist = new ArrayList<StateBean>();
public static String openTime="";
    public static String closeTime="";
    public static void initVaries()
    {
        if(createFlag==false) {
            chukuTypeList.add("消耗");
            chukuTypeList.add("领用");
            chukuTypeList.add("调拨");
            chukuTypeList.add("报废");

            rukuTypeList.add("库存补充");
            rukuTypeList.add("领用");
            rukuTypeList.add("调拨");
            rukuTypeList.add("报废");

            pankuTypeList.add("盘点");


            createFlag = true;
        }

    }
}
